/***********************************************************************
 * Module:  News.java
 * Author:  Administrator
 * Purpose: Defines the Class News
 ***********************************************************************/
package com.itnetwork.Entity;

import java.util.*;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * callo 1.0
 * 
 * @pdOid a3206d85-61ff-49a0-ba63-07149b883658
 */
@Entity
@Table(name="News")
public class News {
	/** @pdOid e1be9801-b7d7-4c9e-bead-d6bb5e173ae2 */
	public int nid;
	/** @pdOid 0d7aa463-d2dd-4dce-bed4-cc0ae1f8d57e */
	public java.lang.String ntitle;
	/** @pdOid ff57dc0c-dab2-40cf-a892-75e323f44f17 */
	public java.lang.String nsummary;
	/** @pdOid ddaa039d-0f2f-4d97-9520-eef18af29375 */
	public java.lang.String nwriter;
	/** @pdOid 556521c8-0b11-4d08-bdd8-87a0a3425c7f */
	public int nclicked;
	/** @pdOid bdfcc347-418d-48db-837f-c6e499cc3869 */
	public int ntoplevel;
	/** @pdOid 73a76906-a7be-4990-943b-e8aadd726593 */
	public boolean nvisiable;
	/** @pdOid 6235a027-2a09-4ea6-861b-313d3b6df4e8 */
	public java.util.Date ndate=new Date();
	/** @pdOid 52355504-3fda-49ab-89df-ee0e889977b5 */
	public java.lang.String nhref;
	/** @pdOid 81d4f521-b48b-4971-9dc4-cee1be37a0de */
	public java.lang.String ncontent;
/****************************************************************************/
	private int cid;
	private String ctitle;
/****************************************************************************/
	/**
	 * @pdRoleInfo migr=no name=Category assc=categoryNewRelationship mult=0..1
	 *             side=A
	 */
	/*
	 * 对应一方的栏目
	 */
	public Category category;

	@Id
	@GeneratedValue
	public int getNid() {
		return nid;
	}

	public void setNid(int nid) {
		this.nid = nid;
	}

	public java.lang.String getNtitle() {
		return ntitle;
	}
	public void setNtitle(java.lang.String ntitle) {
		this.ntitle = ntitle;
	}
/*	public void setNtitle(java.lang.String Ntitle) {
		this.Ntitle = Ntitle;
	}

	public java.lang.String getnSummary() {
		return nSummary;
	}

	public void setnSummary(java.lang.String nSummary) {
		this.nSummary = nSummary;
	}

	public java.lang.String getnWriter() {
		return nWriter;
	}

	public void setnWriter(java.lang.String nWriter) {
		this.nWriter = nWriter;
	}

	public int getnClicked() {
		return nClicked;
	}

	public void setnClicked(int nClicked) {
		this.nClicked = nClicked;
	}

	public int getnToplevel() {
		return nToplevel;
	}

	public void setnToplevel(int nToplevel) {
		this.nToplevel = nToplevel;
	}

	public int getnVisiable() {
		return nVisiable;
	}

	public void setnVisiable(int nVisiable) {
		this.nVisiable = nVisiable;
	}

	public java.util.Date getnDate() {
		return nDate;
	}

	public void setnDate(java.util.Date nDate) {
		this.nDate = nDate;
	}

	public java.lang.String getnHref() {
		return nHref;
	}

	public void setnHref(java.lang.String nHref) {
		this.nHref = nHref;
	}

	public java.lang.String getnContent() {
		return nContent;
	}

	public void setnContent(java.lang.String nContent) {
		this.nContent = nContent;
	}*/

	@ManyToOne
	@JoinColumn(name="cid")
	public Category getCategory() {
		return category;
	}
	
	public void setCategory(Category category) {
		this.category = category;
	}
	
	public java.lang.String getNsummary() {
		return nsummary;
	}

	public void setNsummary(java.lang.String nsummary) {
		this.nsummary = nsummary;
	}

	public java.lang.String getNwriter() {
		return nwriter;
	}

	public void setNwriter(java.lang.String nwriter) {
		this.nwriter = nwriter;
	}

	public int getNclicked() {
		return nclicked;
	}

	public void setNclicked(int nclicked) {
		this.nclicked = nclicked;
	}

	public int getNtoplevel() {
		return ntoplevel;
	}

	public void setNtoplevel(int ntoplevel) {
		this.ntoplevel = ntoplevel;
	}



	public boolean isNvisiable() {
		return nvisiable;
	}

	public void setNvisiable(boolean nvisiable) {
		this.nvisiable = nvisiable;
	}

	public java.util.Date getNdate() {
		return ndate;
	}

	public void setNdate(java.util.Date ndate) {
		this.ndate = ndate;
	}

	public java.lang.String getNhref() {
		return nhref;
	}

	public void setNhref(java.lang.String nhref) {
		this.nhref = nhref;
	}

	public java.lang.String getNcontent() {
		return ncontent;
	}

	public void setNcontent(java.lang.String ncontent) {
		this.ncontent = ncontent;
	}
	/****************************************************************************/
	@Transient
	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}
	@Transient
	public String getCtitle() {
		return ctitle;
	}

	public void setCtitle(String ctitle) {
		this.ctitle = ctitle;
	}

	/****************************************************************************/



}